<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>三元运算符</title>
</head>
<body>
        <script>
            var b = 1;
            var a = b ?'你好 ':19940715;
            console.log(a)
        </script>
</body>
</html>